<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'video-form',
	'enableAjaxValidation'=>false,
     'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'title'); ?>
		<?php echo $form->textField($model,'title',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'title'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'video'); ?>
		<?php echo CHtml::activeFileField($model,'video',array('size'=>60)); ?>
        <?php
            /*$this->widget('ext.xupload.XUploadWidget', array(
                                'url' => Yii::app()->createUrl("/var/www/xemhomnay/trunk/fo/data"),
                                'model' => $model,
                                'attribute' => 'video',
            ));*/
        ?>
		<?php echo $form->error($model,'video'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'embed_code'); ?>
		<?php echo $form->textArea($model,'embed_code',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'embed_code'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'content'); ?>
		<?php echo $form->textArea($model,'content',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'content'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'author'); ?>
		<?php echo $form->textField($model,'author',array('size'=>11,'maxlength'=>11)); ?>
		<?php echo $form->error($model,'author'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'id_provider'); ?>
		<?php echo $form->textField($model,'id_provider',array('size'=>11,'maxlength'=>11)); ?>
		<?php echo $form->error($model,'id_provider'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'image'); ?>
		<?php echo $form->textField($model,'image',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'image'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'categories'); ?>
		<?php echo $form->textField($model,'categories',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'categories'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tags'); ?>
		<?php echo $form->textField($model,'tags',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'tags'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'type'); ?>
		<?php echo $form->textField($model,'type',array('size'=>60,'maxlength'=>64)); ?>
		<?php echo $form->error($model,'type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'id_video'); ?>
		<?php echo $form->textField($model,'id_video',array('size'=>60,'maxlength'=>64)); ?>
		<?php echo $form->error($model,'id_video'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'published_date'); ?>
		<?php echo $form->textField($model,'published_date'); ?>
		<?php echo $form->error($model,'published_date'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'created_date'); ?>
		<?php echo $form->textField($model,'created_date'); ?>
		<?php echo $form->error($model,'created_date'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'modified_date'); ?>
		<?php echo $form->textField($model,'modified_date'); ?>
		<?php echo $form->error($model,'modified_date'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'status'); ?>
		<?php echo $form->textField($model,'status'); ?>
		<?php echo $form->error($model,'status'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'disabled'); ?>
		<?php echo $form->textField($model,'disabled'); ?>
		<?php echo $form->error($model,'disabled'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'count_view'); ?>
		<?php echo $form->textField($model,'count_view'); ?>
		<?php echo $form->error($model,'count_view'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'count_comment'); ?>
		<?php echo $form->textField($model,'count_comment'); ?>
		<?php echo $form->error($model,'count_comment'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'featured'); ?>
		<?php echo $form->textField($model,'featured'); ?>
		<?php echo $form->error($model,'featured'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'duration_time'); ?>
		<?php echo $form->textField($model,'duration_time'); ?>
		<?php echo $form->error($model,'duration_time'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'slug'); ?>
		<?php echo $form->textField($model,'slug',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'slug'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->